import { Injectable } from '@angular/core';
import { gw_crab_g } from '@core';
import { _HttpClient } from '@delon/theme';
import { Observable } from 'rxjs';

@Injectable({ providedIn: 'root' })
export class CrabService {
  constructor(private http: _HttpClient) {}

  public getCrabGrowthUrl() {
    return `${gw_crab_g}/crab/growth/record/query`;
  }

  public queryCrabGrowth(): Observable<any> {
    return this.http.get(`${gw_crab_g}/crab/growth/record/query`);
  }
  public saveCrabGrowth(body: any): Observable<any> {
    return this.http.post(`${gw_crab_g}/crab/growth/record/save`, body);
  }

  public deleteCrabGrowth(id: any): Observable<any> {
    return this.http.get(`${gw_crab_g}/crab/growth/record/delete/${id}`);
  }
}
